.class Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;
.super Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;
.source "SinglePicturePreviewActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "b"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f<",
        "Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic k:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;


# direct methods
.method public constructor <init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;Landroid/view/View;Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->k:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;

    .line 2
    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;Landroid/view/View;Landroid/view/View;)V

    return-void
.end method

.method private a(Ljava/lang/String;FLandroid/graphics/Bitmap;Lcom/davemorrissey/labs/subscaleview/a;)V
    .locals 7

    .line 16
    new-instance v6, Lcom/esfile/screen/recorder/picture/picker/m;

    move-object v0, v6

    move-object v1, p0

    move v2, p2

    move-object v3, p1

    move-object v4, p4

    move-object v5, p3

    invoke-direct/range {v0 .. v5}, Lcom/esfile/screen/recorder/picture/picker/m;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;FLjava/lang/String;Lcom/davemorrissey/labs/subscaleview/a;Landroid/graphics/Bitmap;)V

    invoke-static {v6}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;)[F
    .locals 5

    .line 26
    invoke-direct {p0, p2}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->d(Ljava/lang/String;)[I

    move-result-object p2

    .line 27
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    const-string v1, "window"

    .line 28
    invoke-virtual {p1, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/WindowManager;

    .line 29
    invoke-interface {p1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    const/4 p1, 0x0

    .line 30
    aget v1, p2, p1

    const/4 v2, 0x2

    if-eqz v1, :cond_1

    const/4 v1, 0x1

    aget v3, p2, v1

    if-nez v3, :cond_0

    goto :goto_0

    .line 31
    :cond_0
    iget v3, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 32
    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    int-to-float v3, v3

    .line 33
    aget v4, p2, p1

    int-to-float v4, v4

    div-float/2addr v3, v4

    int-to-float v0, v0

    .line 34
    aget v4, p2, v1

    int-to-float v4, v4

    div-float/2addr v0, v4

    .line 35
    invoke-static {v3, v0}, Ljava/lang/Math;->min(FF)F

    move-result v0

    .line 36
    aget v3, p2, p1

    int-to-float v3, v3

    mul-float v3, v3, v0

    .line 37
    aget p2, p2, v1

    int-to-float p2, p2

    mul-float v0, v0, p2

    new-array p2, v2, [F

    aput v3, p2, p1

    aput v0, p2, v1

    return-object p2

    :cond_1
    :goto_0
    new-array p1, v2, [F

    .line 38
    fill-array-data p1, :array_0

    return-object p1

    nop

    :array_0
    .array-data 4
        0x0
        0x0
    .end array-data
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;)F
    .locals 3

    .line 6
    invoke-direct {p0, p2}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->d(Ljava/lang/String;)[I

    move-result-object p2

    const/4 v0, 0x0

    .line 7
    aget v1, p2, v0

    if-eqz v1, :cond_1

    const/4 v1, 0x1

    aget v1, p2, v1

    if-nez v1, :cond_0

    goto :goto_0

    .line 8
    :cond_0
    new-instance v1, Landroid/util/DisplayMetrics;

    invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V

    const-string v2, "window"

    .line 9
    invoke-virtual {p1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/WindowManager;

    .line 10
    invoke-interface {p1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 11
    iget p1, v1, Landroid/util/DisplayMetrics;->widthPixels:I

    int-to-float p1, p1

    .line 12
    aget p2, p2, v0

    int-to-float p2, p2

    div-float/2addr p1, p2

    return p1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return p1
.end method

.method private d(Ljava/lang/String;)[I
    .locals 4

    .line 1
    new-instance v0, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    const/4 v1, 0x1

    .line 2
    iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 3
    invoke-static {p1, v0}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    const/4 p1, 0x2

    new-array p1, p1, [I

    .line 4
    iget v2, v0, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    const/4 v3, 0x0

    aput v2, p1, v3

    iget v0, v0, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    aput v0, p1, v1

    return-object p1
.end method

.method static synthetic e(Landroid/view/View;)V
    .locals 0

    return-void
.end method

.method static synthetic f(Landroid/view/View;)V
    .locals 0

    return-void
.end method


# virtual methods
.method public a()Landroid/view/View$OnClickListener;
    .locals 1

    .line 39
    sget-object v0, Lcom/esfile/screen/recorder/picture/picker/l;->a:Lcom/esfile/screen/recorder/picture/picker/l;

    return-object v0
.end method

.method public synthetic a(FLjava/lang/String;Lcom/davemorrissey/labs/subscaleview/a;Landroid/graphics/Bitmap;)V
    .locals 3

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c:Landroid/view/View;

    if-eqz v0, :cond_1

    const/high16 v1, 0x3f800000    # 1.0f

    cmpl-float v2, p1, v1

    if-lez v2, :cond_0

    .line 18
    check-cast v0, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    const/4 v2, 0x3

    invoke-virtual {v0, v2}, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;->setMinimumScaleType(I)V

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c:Landroid/view/View;

    check-cast v0, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    invoke-virtual {v0, v1}, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;->setMinScale(F)V

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c:Landroid/view/View;

    check-cast v0, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    invoke-virtual {v0, p1}, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;->setMaxScale(F)V

    .line 21
    :cond_0
    invoke-static {p2}, Lcom/esfile/screen/recorder/utils/i;->b(Ljava/lang/String;)I

    move-result p2

    .line 22
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c:Landroid/view/View;

    check-cast v0, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    invoke-virtual {v0, p2}, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;->setOrientation(I)V

    .line 23
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c:Landroid/view/View;

    check-cast p2, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    invoke-virtual {p2, p1}, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;->setDoubleTapZoomScale(F)V

    .line 24
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c:Landroid/view/View;

    check-cast p2, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    invoke-static {p4}, Lcom/davemorrissey/labs/subscaleview/a;->a(Landroid/graphics/Bitmap;)Lcom/davemorrissey/labs/subscaleview/a;

    move-result-object p4

    invoke-virtual {p2, p3, p4}, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;->a(Lcom/davemorrissey/labs/subscaleview/a;Lcom/davemorrissey/labs/subscaleview/a;)V

    const/4 p2, 0x0

    cmpl-float p2, p1, p2

    if-eqz p2, :cond_1

    .line 25
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c:Landroid/view/View;

    check-cast p2, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    new-instance p3, Lcom/esfile/screen/recorder/picture/picker/x;

    invoke-direct {p3, p0, p1}, Lcom/esfile/screen/recorder/picture/picker/x;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;F)V

    invoke-virtual {p2, p3}, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;->setOnImageEventListener(Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView$g;)V

    :cond_1
    return-void
.end method

.method public synthetic a(Ljava/lang/String;Landroid/net/Uri;)V
    .locals 7

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->b:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 2
    invoke-direct {p0, v0, p1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->b(Landroid/content/Context;Ljava/lang/String;)F

    move-result v1

    .line 3
    invoke-direct {p0, v0, p1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->a(Landroid/content/Context;Ljava/lang/String;)[F

    move-result-object v2

    const/4 v3, 0x0

    .line 4
    aget v4, v2, v3

    const/4 v5, 0x0

    cmpl-float v4, v4, v5

    if-lez v4, :cond_0

    const/4 v4, 0x1

    aget v6, v2, v4

    cmpl-float v5, v6, v5

    if-lez v5, :cond_0

    .line 5
    invoke-static {p2}, Lcom/davemorrissey/labs/subscaleview/a;->a(Landroid/net/Uri;)Lcom/davemorrissey/labs/subscaleview/a;

    move-result-object p2

    .line 6
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->d(Ljava/lang/String;)[I

    move-result-object v5

    .line 7
    aget v6, v5, v3

    if-lez v6, :cond_0

    aget v6, v5, v4

    if-lez v6, :cond_0

    .line 8
    aget v6, v5, v3

    aget v5, v5, v4

    invoke-virtual {p2, v6, v5}, Lcom/davemorrissey/labs/subscaleview/a;->a(II)Lcom/davemorrissey/labs/subscaleview/a;

    .line 9
    new-instance v5, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v5}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 10
    new-instance v6, Lcom/esfile/screen/recorder/media/util/y;

    aget v3, v2, v3

    float-to-int v3, v3

    aget v2, v2, v4

    float-to-int v2, v2

    invoke-direct {v6, v3, v2}, Lcom/esfile/screen/recorder/media/util/y;-><init>(II)V

    .line 11
    invoke-static {v0}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result v2

    .line 12
    invoke-static {v0}, Lcom/esfile/screen/recorder/utils/g;->f(Landroid/content/Context;)I

    move-result v0

    .line 13
    invoke-static {v6, v2, v0}, Lcom/esfile/screen/recorder/utils/d;->b(Lcom/esfile/screen/recorder/media/util/y;II)I

    move-result v0

    iput v0, v5, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I

    .line 14
    invoke-static {p1, v5}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 15
    invoke-direct {p0, p1, v1, v0, p2}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->a(Ljava/lang/String;FLandroid/graphics/Bitmap;Lcom/davemorrissey/labs/subscaleview/a;)V

    :cond_0
    return-void
.end method

.method public b()Landroid/view/View$OnClickListener;
    .locals 1

    .line 13
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/k;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/k;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;)V

    return-object v0
.end method

.method public b(Landroid/graphics/Bitmap;)V
    .locals 1

    if-nez p1, :cond_0

    return-void

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->c:Landroid/view/View;

    check-cast v0, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;

    invoke-static {p1}, Lcom/davemorrissey/labs/subscaleview/a;->a(Landroid/graphics/Bitmap;)Lcom/davemorrissey/labs/subscaleview/a;

    move-result-object p1

    invoke-virtual {v0, p1}, Lcom/davemorrissey/labs/subscaleview/SubsamplingScaleImageView;->setImage(Lcom/davemorrissey/labs/subscaleview/a;)V

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 2

    const-string v0, "http"

    .line 1
    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    goto :goto_0

    .line 3
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v0

    .line 4
    :goto_0
    new-instance v1, Lcom/esfile/screen/recorder/picture/picker/n;

    invoke-direct {v1, p0, p1, v0}, Lcom/esfile/screen/recorder/picture/picker/n;-><init>(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;Ljava/lang/String;Landroid/net/Uri;)V

    invoke-static {v1}, Les/xc;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public c()Landroid/view/View$OnClickListener;
    .locals 1

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/picture/picker/j;->a:Lcom/esfile/screen/recorder/picture/picker/j;

    return-object v0
.end method

.method public synthetic d(Landroid/view/View;)V
    .locals 2

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->h:Ljava/lang/String;

    if-nez p1, :cond_0

    .line 6
    new-instance p1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->b:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    const-class v1, Lcom/esfile/screen/recorder/picture/PictureEditActivity;

    invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->k:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->a(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)Landroid/net/Uri;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->k:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;

    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;->b(Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->k:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;

    invoke-virtual {v0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->k:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;

    const/4 v1, 0x0

    invoke-static {v0, p1, v1}, Les/ya;->a(Landroid/content/Context;Ljava/lang/String;I)V

    .line 10
    :goto_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$f;->e()V

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity$b;->k:Lcom/esfile/screen/recorder/picture/picker/SinglePicturePreviewActivity;

    invoke-virtual {p1}, Landroid/app/Activity;->finish()V

    return-void
.end method
